local skel = fk.CreateSkill{--定义
  name = "knu__zongxian_collateral",
}

Fk:loadTranslationTable{--翻译
  ["knu__zongxian_collateral"] = "宗燹",
  [":knu__zongxian_collateral"] = "你可以将两张手牌当【借刀杀人】使用并失去此技能。",

  ["#knu__zongxian_collateral_ask"] = "宗燹：你可以将两张手牌当【借刀杀人】使用",
}

skel:addEffect("viewas", {
  pattern = "klee__collateral",
  prompt = "#knu__zongxian_collateral_ask",
  handly_pile = true,
  filter_pattern = {
    min_num = 2,
    max_num = 2,
    pattern = ".|.|.|hand",
  },
  view_as = function(self, player, cards)
    if #cards ~= 2 then return end
    local c = Fk:cloneCard("klee__collateral")
    c:addSubcards(cards)
    c.skillName = skel.name
    return c
  end,
  enabled_at_response = function (self, player, response)
    return not response
  end,
  before_use = function (self, player, use)
    local room = player.room
    room:handleAddLoseSkills(player,"-knu__zongxian_collateral")
  end
})

return skel